<?php namespace App\Http\Controllers\Api;

use Auth;
use App\Http\Controllers\Controller;

class IndexController extends Controller{
    
    public function pub(){
        return 'this is public info';
    }
    
    public function priv(){
        $user = Auth::guard('api')->user();
        return 'this is private info for '.$user->nickname;
    }
}